﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jzy.Workflow.Node
{
    public partial class FlowNodeInfo
    {
        public const string TABLE_NAME = "FlowNode";
        public const string INSERT_SQL = "insert into FlowNode ( [ID], [Name], [FlowID], [TypeID], [Top], [Left], [Width], [Height], [RoleNames], [UserNames], [AllowAdd], [AllowBack], [AllowPass], [AllowJump], [SubmitMode], [IsParallel], [ParallelMode], [DefaultUserID], [DefaultNextNodeID]) values ( @ID, @Name, @FlowID, @TypeID, @Top, @Left, @Width, @Height, @RoleNames, @UserNames, @AllowAdd, @AllowBack, @AllowPass, @AllowJump, @SubmitMode, @IsParallel, @ParallelMode, @DefaultUserID, @DefaultNextNodeID)";
        public const string UPDATE_SQL = "update FlowNode set  [ID] = @ID, [Name] = @Name, [FlowID] = @FlowID, [TypeID] = @TypeID, [Top] = @Top, [Left] = @Left, [Width] = @Width, [Height] = @Height, [RoleNames] = @RoleNames, [UserNames] = @UserNames, [AllowAdd] = @AllowAdd, [AllowBack] = @AllowBack, [AllowPass] = @AllowPass, [AllowJump] = @AllowJump, [SubmitMode] = @SubmitMode, [IsParallel] = @IsParallel, [ParallelMode] = @ParallelMode, [DefaultUserID] = @DefaultUserID, [DefaultNextNodeID] = @DefaultNextNodeID where ID = @ID";
        /// <summary>
        /// 
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 节点名称
        /// </summary>
        public String Name
        {
            get;
            set;
        }
        /// <summary>
        /// 流程ID
        /// </summary>
        public Int32 FlowID
        {
            get;
            set;
        }
        /// <summary>
        /// 节点类型(开始，结束，上级领导，常规节点)
        /// </summary>
        public Int32 TypeID
        {
            get;
            set;
        }
        /// <summary>
        /// 顶部距离
        /// </summary>
        public Double Top
        {
            get;
            set;
        }
        /// <summary>
        /// 左边距离
        /// </summary>
        public Double Left
        {
            get;
            set;
        }
        /// <summary>
        /// 宽度
        /// </summary>
        public Double Width
        {
            get;
            set;
        }
        /// <summary>
        /// 高度
        /// </summary>
        public Double Height
        {
            get;
            set;
        }
        /// <summary>
        /// 角色名称
        /// </summary>
        public String RoleNames
        {
            get;
            set;
        }
        /// <summary>
        /// 用户名称
        /// </summary>
        public String UserNames
        {
            get;
            set;
        }
        /// <summary>
        /// 是否允许加签
        /// </summary>
        public Boolean AllowAdd
        {
            get;
            set;
        }
        /// <summary>
        /// 是否允许退回
        /// </summary>
        public Boolean AllowBack
        {
            get;
            set;
        }
        /// <summary>
        /// 是否允许传阅
        /// </summary>
        public Boolean AllowPass
        {
            get;
            set;
        }
        /// <summary>
        /// 是否允许跳签
        /// </summary>
        public Boolean AllowJump
        {
            get;
            set;
        }
        /// <summary>
        /// 提交模式
        /// </summary>
        public Int32 SubmitMode
        {
            get;
            set;
        }
        /// <summary>
        /// 是否并行
        /// </summary>
        public Boolean IsParallel
        {
            get;
            set;
        }
        /// <summary>
        /// 并行模式
        /// </summary>
        public Int32 ParallelMode
        {
            get;
            set;
        }
        /// <summary>
        /// 默认用户
        /// </summary>
        public Int32? DefaultUserID
        {
            get;
            set;
        }
        /// <summary>
        /// 默认下一节点
        /// </summary>
        public Int32 DefaultNextNodeID
        {
            get;
            set;
        }
    }


}
